home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17615 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: fido.asd.sgi.com!news
  2. From: austern@isolde.mti.sgi.com (Matt Austern)
  3. Newsgroups: comp.lang.java,comp.lang.c++
  4. Subject: Re: Will Java kill C++?
  5. Followup-To: comp.lang.java,comp.lang.c++
  6. Date: 16 Apr 1996 19:43:16 GMT
  7. Organization: SGI
  8. Message-ID: <AUSTERN.96Apr16124316@isolde.mti.sgi.com>
  9. References: <4ksfdr$bhh@engnews2.Eng.Sun.COM> <3172DC7C.6B3F@sdt.com>
  10.     <4ku4lk$lg6@engnews2.Eng.Sun.COM> <DpyH85.6uu@research.att.com>
  11.     <4l0si4$pqd@gaia.ns.utk.edu>
  12. Reply-To: austern@mti.sgi.com
  13. NNTP-Posting-Host: isolde.mti.sgi.com
  14. In-reply-to: mbk@caffeine.engr.utk.edu's message of 16 Apr 1996 19:31:16 GMT
  15.  
  16. In article <4l0si4$pqd@gaia.ns.utk.edu> mbk@caffeine.engr.utk.edu (Matt Kennel) writes:
  17.  
  18. > : > >How would you have maintained C-style linkage and C++ typesafe
  19. > : > >linkage in the same object module without changing the linker?
  20. > : > By writing a linker pre-pass program which checks for and enforces
  21. > : > the type-safe linking rules.
  22. > : But such a program (a) would have to be rewritten for every machine
  23. > : to which C++ was ported, and (b) would not solve the problem of what
  24. > : name to give the linker for overloaded functions with the same name.
  25. > So?  
  26. > Eiffel and Ada and Sather compilers do it and their generics
  27. > work like a swiss watch.
  28.  
  29. You mean you can link together object files produced by two different
  30. Eiffel compilers and it's guaranteed that the link will work?  If so,
  31. that guarantee is quite new: the last time I used an Eiffel compiler,
  32. it didn't even have such a notion as compiling a single source file
  33. into a single object file and then linking together the resulting
  34. object files.  The only user-visible files were the source (.e) files
  35. and the executable.  
  36.  
  37. I certainly doubt if there's any portable way to compile part of an
  38. Eiffel program with one Eiffel compiler and part with a different one.
  39. The issue of source-level portability between Eiffel implementations
  40. is being resolved, but binary-level portability seems to be a very
  41. long way in the future.
  42.  
  43. (In the case of Sather, of course, the issue of linking together
  44. object files from two different compilers doesn't arise, since there
  45. is only one Sather compiler.  Standardization is only an issue once
  46. there's more than one implementation to standardize.)
  47. -- 
  48. Matt Austern
  49. SGI: MTI Compilers Group
  50. austern@isolde.mti.sgi.com
  51.